package vip.mall.modular.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import vip.mall.common.result.CommonPageResult;
import vip.mall.modular.user.entity.User;
import vip.mall.modular.user.params.AddUserParam;
import vip.mall.modular.user.params.EditUserPasswordParams;
import vip.mall.modular.user.params.UserPageParams;

/**
 * @author ASUS
 * @Date 2025/2/10 10:12
 * @Descripition
 */
public interface UserService extends IService<User> {
    /**
     * 添加用户
     * @param addUserParam 用户参数
     */
    boolean add(AddUserParam addUserParam);

    /**
     *  分页用户列表
     */

    CommonPageResult pageList(UserPageParams userPageParams);

    /**
     *  禁用用户列表
     */

    CommonPageResult selectDeleteUser(UserPageParams userPageParams);

    boolean delete(String userId);

    User getUserInfo(String username);


    boolean editUserPassword(EditUserPasswordParams editUserPasswordParams);
}
